<?php

namespace App\JsonRpc;

use Hyperf\RpcClient\AbstractServiceClient;

class UserServiceConsumer extends AbstractServiceClient implements UserInterface
{
    /**
     * 定义对应服务提供者的服务名称
     */
    protected string $serviceName = 'UserService';

    /**
     * 定义对应服务提供者的服务协议
     */
    protected string $protocol = 'jsonrpc';

    public function getUserInfoById($id)
    {
        var_dump($this->__request(__FUNCTION__,[1]));
    }
}